package com.bhs.service.Menu.impl;


import com.bhs.mappers.menu.TopMenuMapper;
import com.bhs.pojo.Item;
import com.bhs.service.Menu.TopMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TopMenuServiceImpl implements TopMenuService {
    @Autowired
    private TopMenuMapper topMenuMapper;

    @Override
    public List<com.bhs.pojo.TopMenu> findTopMenu() {
        return topMenuMapper.findTopMenu();
    }

    @Override
    public List<Item> findTopItem(Integer id) {
        return topMenuMapper.findTopItem(id);
    }
}
